<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
<head>
	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

	<title><?php wp_title('&laquo;', true, 'right'); ?> <?php bloginfo('name'); ?></title>

	<meta name="medium" content="blog" />
	<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" />
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
	<link rel="icon" href="<?php echo ide_option('favicon_url') ? ide_option('favicon_url') : get_bloginfo('template_url').'/favicon.ico'; ?>" type="images/x-icon" />
	
    <?php wp_head(); ?>
</head>

<body <?php body_class( ide_body_class().' '.ide_option('colorscheme') ); ?>>

<div id="wrap">
	<div id="header">
		<div class="logo">
                    <?php if (ide_option('logo_url')){ ?>
			<a href="<?php bloginfo('home'); ?>"><img src="<?php echo ide_option('logo_url') ? ide_option('logo_url') : get_bloginfo('template_url').'/images/logo.png';  ?>" alt="<?php bloginfo('name'); ?>" title="<?php bloginfo('name'); ?>" /></a>
		    <?php } else { ?>
                    
                        <h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('title'); ?></a></h1>
                    <?php }  ?>
                </div><!-- logo //-->

		<?php if(ide_option('nav')):
				wp_nav_menu( array( 'container' => 'div', 'menu_class' => 'nav', 'container_class' => 'nav', 'theme_location' => 'menu_main' ) );
		endif; ?>
		
		<?php ide_sidebar(); ?>
		
		<div class="clear"> </div>
		
	</div><!-- header //-->
	
	<div id="main">